﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListRewardJobs.aspx.cs"
    Inherits="lcmyjobs.Web.Admin.ListRewardJobs" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>全部悬赏职位</title>
    <link href="../css/AdminFrame.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/mybasic.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }

        </style>
   
</head>
<body>
    <form id="form1" runat="server">
    <div class="rightCenter">
        <div class="rightBack">
            <div class="rightContentTop">
                <ul>
                    <li><a href="userReward.aspx">全部悬赏人才</a> </li>
                    <li class="cur"><a href="ListRewardJobs.aspx">全部悬赏职位</a> </li>
                    <li><a href="ListOfferJobs.aspx">悬赏招聘揭榜</a> </li>
                    <li><a href="offeruser.aspx">悬赏求职揭榜</a> </li>
                </ul>
            </div>
            <div class="rightContentMiddle">
                <table class="style1">
                    <tr>
                        <td style="text-align: left; font-size: 12px;" class="style3">
                            <asp:Image CssClass="imgstyle" ID="Image1" ImageUrl="../images/h_ctenter_iocn.jpg" runat="server" />
                            &nbsp; <span  class="spanstyle">
                                等待审核的悬赏职位<asp:Label ID="lbl_count" runat="server"></asp:Label>个</span>
                        </td>
                        <td style="text-align: left">
                           
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="enterprise_reward_id"
                                EnableModelValidation="True" OnRowCommand="GridView1_RowCommand" 
                                Width="100%" CssClass="grid" GridLines="None" 
                                onrowdatabound="GridView1_RowDataBound">
                                <Columns>
                                    <asp:TemplateField HeaderText="编号">
                                         <HeaderTemplate>
                                         <input id="Checkbox1" type="checkbox" onclick="checkall(this)" />&nbsp;编号
                                    </HeaderTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                             <asp:CheckBox ID="cbo_rid" runat="server" />&nbsp;<asp:Label ID="Label2" runat="server" Text='<%# GetBH(Eval("enterprise_reward_id").ToString()) %>'></asp:Label>
                                        </ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Left" CssClass="tdleftmargin"/>
                                    <ItemStyle  CssClass="tdleftmargin" HorizontalAlign="Left" />
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="招聘职位">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="hy_jobs" runat="server" target='_blank'
                                            NavigateUrl='<%# "ShowJobs.aspx?jobsid="+Eval("enterprise_rid") %>' 
                                            Text='<%# Bind("jobs_name") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                    
                                </asp:TemplateField>
                                    <asp:BoundField DataField="name" HeaderText="招聘单位" />
                                    <asp:BoundField DataField="price" HeaderText="悬赏金额(元)" />
                                    <asp:BoundField DataField="statusname" HeaderText="审核" />
                                    <asp:TemplateField HeaderText="有效期">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TB_valid" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="label_valid" runat="server" 
                                            Text='<%# lcmyjobs.BLL.Tools.GetValidity(Eval("validity_last").ToString()) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                    <asp:BoundField DataField="issuccessname" HeaderText="成功" />
                                    <asp:BoundField DataField="reftime" HeaderText="发布日期" DataFormatString="{0:yyyy-MM-dd H:mm}" />
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbn_check" runat="server" CommandArgument='<%# Bind("enterprise_reward_id") %>'
                                                OnClientClick= "return confirm('确认要刷新吗？')" CommandName="lbn_check">刷新</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                   
                    <tr>
                        <td colspan="2" class="pagerstyle">
                   
                            <webdiyer:aspnetpager id="AspNetPager1" runat="server" alwaysshow="True" currentpagebuttonposition="Center"
                                PageSize="15" AlwaysShowFirstLastPageNumber="True" CustomInfoTextAlign="Left"
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" NumericButtonCount="10"
                    PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="" 
                    CustomInfoHTML="第 %CurrentPageIndex% 页 共 %PageCount%页 %RecordCount%条记录 "
                    LayoutType="Table" ShowCustomInfoSection="Left" ShowNavigationToolTip="True"
                    ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextAfterPageIndexBox="&nbsp;页"
                    TextBeforePageIndexBox="转到第" onpagechanged="AspNetPager1_PageChanged">
                        </webdiyer:aspnetpager>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                             <div style=" margin:0 auto; width:450px;">
                            <asp:LinkButton ID="lbn_upd" runat="server" CssClass="bgbtn" ForeColor="#e13804" OnClientClick= "if(havecheck()) return confirm('确认要审核吗？')"  OnClick="lbn_update_Click">审核</asp:LinkButton>
                            <asp:LinkButton ID="lbn_cancle" runat="server" CssClass="bgbtn" ForeColor="#e13804" OnClientClick= "if(havecheck()) return confirm('确认要取消审核吗？')"  OnClick="lbn_cancle_Click">取消审核</asp:LinkButton>
                            <asp:LinkButton ID="lbn_issuccess" runat="server" CssClass="bgbtn" ForeColor="#e13804" OnClientClick= "if(havecheck()) return confirm('确认要成功吗？')"  OnClick="lbn_issuccess_Click">成功</asp:LinkButton>
                            <asp:LinkButton ID="lbn_refresh" runat="server"  CssClass="bgbtn" ForeColor="#e13804" OnClientClick= "if(havecheck()) return confirm('确认要刷新悬赏吗？')" 
                                OnClick="lbn_refresh_Click">刷新悬赏</asp:LinkButton>
                                </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
